Release 10.1A: OpenEdge Development:
Internationalizing Applications
Guidelines for using multi-byte characters
When you use multi-byte characters in OpenEdge applications, the following guidelines apply:
- When choosing a Chinese, Japanese, or Korean font, choose one large enough to display each character cleanly and clearly.
- When designing an application that uses Chinese, Japanese, or Korean, leave enough space in the user interface for the IME.
- When using multi-byte characters and using a 4GL element to calculate the length of a character string or a position within a character string, use the correct unit of measure, whether bytes, characters, or columns. For more information on how to specify bytes, characters, or columns, see the 4GL element’s reference entry in OpenEdge Development: Progress 4GL Reference .
To have the compiler warn you of 4GL elements in the source code that should specify the unit of measure but appear not to, start OpenEdge with the Check Double-byte Enabled (
-checkdbe) startup parameter. For more information on-checkdbe, see OpenEdge Deployment: Startup Command and Parameter Reference .- When displaying or printing characters, do not assume one character requires one column.
- When assigning an accelerator to a menu item or label, use a single-byte character. If you use a multi-byte character, Windows underlines only the first byte.
For example, the following code fragment assigns the accelerator
“A”to a button whose label is a double-byte character:
- When you use the UNIX character client with double-byte code pages, UNIX strips input characters to seven bits, which might garble data. To avoid this, before starting OpenEdge, enter the following command at the command prompt:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |